<?php/** * Created by PhpStorm. * User: goouc * Date: 2019/9/18 * Time: 9:33 */global $_W, $_GPC;$uid = $_GPC['uid'];if (empty($uid)) {    return $this->getresult(1, '请先登录', array('code' => 3001, 'msg' => '请先登录'));}$token = $this->createtoken();$res = pdo_update($this->t_user_token, array('token' => $token, 'createtime' => time()), array('weid' => $_W['uniacid'], 'uid' => $uid));if ($res) {    return $this->getresult(200, 'token刷新成功', array('token' => $token));} else {    return $this->getresult(402, 'token刷新失败');}